/**
 * 人物 数据 对象
 */
class GamePersonVO {

    /**
     * 编译顺序 标识
     */
    public static referenceFlag: string = GameBaseScene.setReferenceFlag;

    /**
     * 相关属性
     */
    public thisName: string = ""; // 名称
    public selfWidth: number = 0; // 宽高
    public selfHeight: number = 0;
    public selfX: number = 0; // 位置
    public selfY: number = 0;
    public selfPhysicsType: string = ""; // 物理 类型
    public movieClipKeyList: Array<string> = []; // 帧动画 Key 集合


    /**
     * 构造函数
     */
    public constructor() {

    }

    /**
     * 初始化 函数
     * @param setName
     * @param width
     * @param height
     * @param setX
     * @param setY
     * @param setPhysicsType
     */
    public init(setName: string, width: number, height: number, setX: number, setY: number, setPhysicsType: string): void {

        let getName: string = setName;
        let getWidth: number = width;
        let getHeight: number = height;
        let getX: number = setX;
        let getY: number = setY;
        let getPhysicsType: string = setPhysicsType;

        this.thisName = getName;
        this.selfWidth = getWidth;
        this.selfHeight = getHeight;
        this.selfX = getX;
        this.selfY = getY;
        this.selfPhysicsType = getPhysicsType;
    }

    /**
     * 填充 MC 参数 数据
     * @param setKey
     */
    public addMovieClipData(setKey: string): void {

        let getKey: string = setKey;
        this.movieClipKeyList.push(getKey);
    }

}